﻿using System;
using wojilu.ORM;

namespace wojilu.Apps.Qycms.Domain
{
    [Table("ybb_model")]
    [Serializable]
    public class Model : ObjectBase<Model>
    {
        [NotNull(""), Column(Length = 50), Default("cn")]
        public String lng { get; set; }

        [NotNull(""), Column(Length = 150)]
        public String modelname { get; set; }

        [NotNull(""), Default(20), Column(Length = 3)]
        public Int32 pagemax { get; set; }

        [NotNull(""), Column(Length = 200), Default("SN{datetime}{s}")]
        public String tsnstyle { get; set; }

        [TinyInt, NotNull(""), Default(1), Column(Length = 1)]
        public Int32 pagesylte { get; set; }

        [TinyInt, NotNull(""), Default(1), Column(Length = 1)]
        public Int32 isclass { get; set; }

        [TinyInt, NotNull(""), Default(1), Column(Length = 1)]
        public Int32 lockin { get; set; }

        [TinyInt, NotNull(""), Default(1), Column(Length = 0)]
        public Int32 isbase { get; set; }

        [TinyInt, NotNull(""), Default(1), Column(Length = 1)]
        public Int32 istsn { get; set; }

        [TinyInt, NotNull(""), Default(1), Column(Length = 1)]
        public Int32 isalbum { get; set; }

        [TinyInt, NotNull(""), Default(1), Column(Length = 1)]
        public Int32 isextid { get; set; }

        [TinyInt, NotNull(""), Default(1), Column(Length = 1)]
        public Int32 issid { get; set; }

        [TinyInt, NotNull(""), Default(1), Column(Length = 1)]
        public Int32 isfgid { get; set; }

        [TinyInt, NotNull(""), Default(1), Column(Length = 1)]
        public Int32 islinkdid { get; set; }

        [TinyInt, NotNull(""), Default(1), Column(Length = 1)]
        public Int32 isorder { get; set; }

        [TinyInt, NotNull(""), Default(1), Column(Length = 1)]
        public Int32 ismessage { get; set; }

        [TinyInt, NotNull(""), Default(1), Column(Length = 1)]
        public Int32 ispurview { get; set; }

        [NotNull("")]
        public DateTime addtime { get; set; }

        [NotNull(""), Default(0), Column(Length = 11)]
        public Int32 opid { get; set; }

    }
}